package com.yiyi.credit.manage.sso.mapper;

import com.yiyi.credit.manage.sso.common.mapper.CommonMapper;
import com.yiyi.credit.manage.sso.common.page.Pagination;
import com.yiyi.credit.manage.sso.model.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;


public interface SysUserRoleMapper extends CommonMapper<SysUserRole> {

    @SelectProvider(type = SysUserRoleSqlProvider.class, method = "queryForPage")
    List<Map<String, Object>> getPageData(@Param("sysInfoId") Long sysInfoId, @Param("userName") String userName,
                                          @Param("pagination") Pagination pagination);

    @SelectProvider(type = SysUserRoleSqlProvider.class, method = "queryCount")
    Long getCount(@Param("sysInfoId") Long sysInfoId, @Param("userName") String userName);
}
